.PHONY:all
all:
	@cd compile_server;\
	make clean;\
	make;\
	cd -;\
	cd oj_server;\
	make clean;\
	make;\
	cd -;


.PHONY:output
output:
	@mkdir output;\
	cd output;\
	mkdir compile_server;\
	mkdir oj_server;\
	cp -rf ../compile_server/compile_server ../compile_server/temp ./compile_server;\
	cp -rf ../oj_server/conf ../oj_server/ctemplate_html ../oj_server/questions ../oj_server/wwwroot ../oj_server/oj_server ./oj_server;\
	cd ..;

.PHONY:clean
clean:
	@cd compile_server;\
	make clean;\
	cd -;\
	cd oj_server;\
	make clean;\
	cd -;\
	rm -rf output;